<!DOCTYPE html>
<html>
<head>
    <title>运动街天气</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("sportsweather:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("sportsweather:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("sportsweather:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="sportsWeather" :rules="ruleValidate" :label-width="80">
            <Form-item label="城市" prop="city">
                <i-input v-model="sportsWeather.city" placeholder="城市"/>
            </Form-item>

            <Form-item label="星期" prop="week">
                <i-input v-model="sportsWeather.week" placeholder="星期"/>
            </Form-item>
            <Form-item label="今日温度" prop="temperature">
                <i-input v-model="sportsWeather.temperature" placeholder="今日温度"/>
            </Form-item>
            <Form-item label="今日天气" prop="weather">
                <i-input v-model="sportsWeather.weather" placeholder="今日天气"/>
            </Form-item>
            <Form-item label="西南风微风" prop="wind">
                <i-input v-model="sportsWeather.wind" placeholder="西南风微风"/>
            </Form-item>
            <Form-item label="穿衣指数" prop="dressingIndex">
                <i-input v-model="sportsWeather.dressingIndex" placeholder="穿衣指数"/>
            </Form-item>
            <Form-item label="穿衣建议" prop="dressingAdvice">
                <i-input v-model="sportsWeather.dressingAdvice" placeholder="穿衣建议"/>
            </Form-item>
            <Form-item label="紫外线强度" prop="uvIndex">
                <i-input v-model="sportsWeather.uvIndex" placeholder="紫外线强度"/>
            </Form-item>
            <Form-item label="舒适度指数" prop="comfortIndex">
                <i-input v-model="sportsWeather.comfortIndex" placeholder="舒适度指数"/>
            </Form-item>
            <Form-item label="洗车指数" prop="washIndex">
                <i-input v-model="sportsWeather.washIndex" placeholder="洗车指数"/>
            </Form-item>
            <Form-item label="旅游指数" prop="travelIndex">
                <i-input v-model="sportsWeather.travelIndex" placeholder="旅游指数"/>
            </Form-item>
            <Form-item label="晨练指数" prop="exerciseIndex">
                <i-input v-model="sportsWeather.exerciseIndex" placeholder="晨练指数"/>
            </Form-item>
            <Form-item label="干燥指数" prop="dryingIndex">
                <i-input v-model="sportsWeather.dryingIndex" placeholder="干燥指数"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/shop/sportsweather.js?_${date.systemTime}"></script>
</body>
</html>